

// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   c4.java

package com.zelix;

import java.awt.Component;
import java.awt.Container;
import java.awt.event.*;
import java.util.EventObject;
import javax.swing.*;
import javax.swing.text.JTextComponent;

// Referenced classes of package com.zelix:
//            x3, jt, f2, j0, 
//            tb

public class c4 extends x3
    implements FocusListener, ActionListener, ItemListener
{

    JCheckBox f;
    boolean g;
    static String h = "\177`'u\024g/6\177\bti*'\017rl;\\\rw/:\177\007rt2n)vh9r\02596et\000~d\022x\r=b;t\025vs\007'\017rl;\\\rw/=\177\017gd,CZ}`3\177-qmpv\004uuc/Z}`3\177'\177epv\004uuct\000~d\022x\r=s7}\tg*k!\017rl;\\\rw/*u\021.4et\000~d\030v\005=s7}\tg<=u\017g`7t\004a/,s\006{us/Z{h0n-qmpv\004uuc/Z{h0n-qmpx\016gu1w\\pn0n\000zo;hOqn*n\016~,k!\tzo*V\003\177/,s\006{ucy\016}u?s\017vsph\bti*7T(";
    static String i = z(z("{h9r\004aM;l\004\177D&y\rfe;Y\tx/2\177\007g<0{\fvM<vO\177d8nZ{h9r\004aM;l\004\177D&y\rfe;Y\tx/*u\0213<~t\000~d\022x\r=c1n\025|lu/"));
    private static String z[];

    public c4(JFrame jframe, jt jt1, boolean flag, int j)
    {
        super(jframe, jt1, j);
        g = flag;
        a();
    }

    public void actionPerformed(ActionEvent actionevent)
    {
        Object obj = actionevent.getSource();
        a(obj);
    }

    public void focusGained(FocusEvent focusevent)
    {
        Object obj = focusevent.getSource();
        if(obj == super.d)
            super.e.setText(z[7]);
    }

    public void focusLost(FocusEvent focusevent)
    {
        super.e.setText(" ");
        Object obj = focusevent.getSource();
        a(obj);
    }

    public void itemStateChanged(ItemEvent itemevent)
    {
label0:
        {
            if(itemevent.getStateChange() == 1)
            {
                super.c.i(true);
                if(!tb.b)
                    break label0;
            }
            super.c.i(false);
        }
    }

    void a(Object obj)
    {
label0:
        {
            if(obj != super.d)
                break label0;
            String s = super.d.getText().trim();
            if(super.c.x() == 1 && s.length() == 0)
            {
                super.d.setText(super.c.w());
                f2.a(super.b, z[8], z[9]);
                if(!tb.b)
                    break label0;
            }
            if(s.endsWith("^"))
            {
                s = s.substring(0, s.length() - 1).trim();
                super.d.setText(s);
            }
            super.c.i(s);
        }
    }

    public void a()
    {
        j0 j0_1 = new j0(this);
        setLayout(j0_1);
        JLabel jlabel = new JLabel(z[6], 2);
        super.d = new JTextField();
        StringBuffer stringbuffer = new StringBuffer(h);
        if(g)
        {
            switch(super.a)
            {
            default:
                break;

            case 1: // '\001'
                f = new JCheckBox(z[1], super.c.D());
                if(!tb.b)
                    break;
                // fall through

            case 2: // '\002'
                f = new JCheckBox(z[5], super.c.D());
                break;
            }
            f.addItemListener(this);
            add(f, z[0]);
            stringbuffer.append(i);
        }
        super.e = new JLabel(" ");
        add(jlabel, z[4]);
        add(super.d, z[3]);
        add(super.e, z[2]);
        j0_1.e(stringbuffer.toString());
        super.d.setText(super.c.w());
        super.d.addFocusListener(this);
        super.d.addActionListener(this);
    }

    private static char[] z(String str) {
        char ac[] = str.toCharArray();
        int clen = ac.length;
        if (clen >= 2)
            return ac;
        ac[0] ^= 0x61;
        return ac;
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x13;
                    break;
                case 1:
                    key = 1;
                    break;
                case 2:
                    key = 94;
                    break;
                case 3:
                    key =26;
                    break;
                default:
                    key = 97;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static
    {
        String as[] = new String[10];
        as[0] = z(z("{h9r\004aM;l\004\177D&y\rfe;Y\tx"));
        as[1] = z(z("Vy=v\024wd~j\000pj?}\0043o?w\0043`-:\026vm2"));
        as[2] = z(z("{h0n-qm"));
        as[3] = z(z("}`3\177'\177e"));
        as[4] = z(z("}`3\177-qm"));
        as[5] = z(z("Vy=v\024wd~j\000pj?}\0043`-:\026vm2"));
        as[6] = z(z("]`3\177["));
        as[7] = z(z("Vo*\177\0233o?w\0043n8:\025{d~j\000pj?}\004=!\023{\0303b1t\025rh0:\025{d~8K1!)s\rwb?h\005="));
        as[8] = z(z("Vs,u\023"));
        as[9] = z(z("C`=q\000td~t\000~d~w\024`u~x\0043d0n\004ad:4AUh;v\0053s;i\025|s;~O"));
        z = as;
    }
}